from peewee import *

from config.base_config import get_db_o

db_o = get_db_o()


class BitgetTickerO(Model):
    id = BigIntegerField(primary_key=True)
    inst_id = CharField()
    create_time = DateTimeField()
    last_price = DecimalField()
    ts = CharField()

    class Meta:
        database = db_o
        table_name = "bitget_ticker"
